package com.baize.markwondemo;

import android.graphics.Color;
import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.util.Log;
import android.view.View;

import androidx.annotation.NonNull;

public class AClickableSpan extends ClickableSpan {

    @Override
    public void updateDrawState(@NonNull TextPaint ds) {
        super.updateDrawState(ds);
        ds.linkColor = Color.RED;
        ds.setUnderlineText(false);
    }

    @Override
    public void onClick(@NonNull View widget) {
        Log.i("baize", "A onClick: ");
    }
}
